XPKIT=/projects/xpkit
SRCS=\
	Main.cc Globals.cc AppEnv.cc ShellApp.cc MainApp.cc \
	Gate.cc TcpGate.cc GateProc.cc 
OBJS=$(SRCS:.cc=.obj)
OUT=app.exe

CXX = cl
CFLAGS = /nologo /MT /GX /W3 /GR- /D_WIN32_WINNT=0400 /TP -I../..
LDFLAGS=\
	/libpath:$(XPKIT)/xp/bas \
	/libpath:$(XPKIT)/xp/net \
	/libpath:$(XPKIT)/xp/utl \
	/libpath:$(XPKIT)/xpp/bas \
	/libpath:$(XPKIT)/xpp/net \
	/libpath:$(XPKIT)/xpp/sys \
	/libpath:$(XPKIT)/xpp/utl 
LIBS=\
	kernel32.lib user32.lib ws2_32.lib advapi32.lib \
	xpbas.lib xpnet.lib xputl.lib \
	xppbas.lib xppnet.lib xppsys.lib xpputl.lib

all: $(OBJS)
	link /nologo /out:$(OUT) $(LDFLAGS) $(LIBS) $(OBJS)

clean:
	del *.obj $(OUT)

.SUFFIXES: .cc .obj
.cc.obj:
	$(CXX) /c /TP $(CFLAGS) $<

